home *** CD-ROM | disk | FTP | other *** search
/ Headbone Interactive / Headbone_Interactive_CD-ROM_Sampler_1995.iso / pc / demos / pants / main.dxr / 00159_do go mode stories.ls < prev    next >
Encoding:
Text File  |  1995-09-15  |  643 b   |  20 lines

  1. on exitFrame
  2.   global gvBackgroundSprite, gCDPATH, DIR_SYM, SFX_EXT, gvCurLetter, gvCurNumber, gvTrack, gvLocaleList
  3.   set vColorCast to gvCurLetter & string(gvCurNumber) & "color"
  4.   set the castNum of sprite gvBackgroundSprite to cast vColorCast
  5.   puppetSound(gvCurLetter & SFX_EXT)
  6.   updateStage()
  7.   repeat while soundBusy(1)
  8.     if the mouseDown then
  9.       exit repeat
  10.     end if
  11.   end repeat
  12.   set vCurPosInList to getPos(gvLocaleList, gvCurLetter)
  13.   if vCurPosInList = count(gvLocaleList) then
  14.     set gvCurLetter to getAt(gvLocaleList, 1)
  15.   else
  16.     set gvCurLetter to getAt(gvLocaleList, vCurPosInList + 1)
  17.   end if
  18.   go(the frame)
  19. end
  20.